GtkSpinButton: don't constantly recreate style contexts for buttons
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 23 Apr 2013 17:12:07 +0000 (13:12 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Tue, 23 Apr 2013 18:04:39 +0000 (14:04 -0400)
commit0032b2dc5ad4c5faffb58565a3e4589335005c9e
tree505db5533ea2f1c60326be97cbf1a8953fe43fcc
parentd9b9ba5da0a89f205bf4ed97df67f0c1c5d2c748
GtkSpinButton: don't constantly recreate style contexts for buttons

Cache the style contexts for the up and down panels, instead of recreating
them each time they are drawn or size requested. GtkSpinButtons were
many times slower to draw than other widgets because of the constant
style matching.

https://bugzilla.gnome.org/show_bug.cgi?id=698682
gtk/gtkspinbutton.c